package com.xxx.base.common.region;

import java.util.ArrayList;
import java.util.List;

/**
 * Description：
 * Created by fyx on 4/25/2017.
 * Version：
 */
public class Region {
    private String code;
    /**
     * 地区名字
     */
    private String name;
    private boolean visible;
    /**
     * 地区行政等级
     */
    private RegionLevel level;
    private Region parentRegion;
    private List<Region> subRegions = new ArrayList<>();
    private List<String> alias = new ArrayList<>();

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public RegionLevel getLevel() {
        return level;
    }

    public void setLevel(RegionLevel level) {
        this.level = level;
    }

    public Region getParentRegion() {
        return parentRegion;
    }

    public void setParentRegion(Region parentRegion) {
        this.parentRegion = parentRegion;
    }

    public List<Region> getSubRegions() {
        return subRegions;
    }

    public void setSubRegions(List<Region> subRegions) {
        this.subRegions = subRegions;
    }

    public List<String> getAlias() {
        return alias;
    }

    public void setAlias(List<String> alias) {
        this.alias = alias;
    }
}
